I am trying to modify parameters routeValue in Razor within Javascript.
function setForm(param) {
var formCariEntitas = '@Html.Action("FormCariEntitas", "Registrasi", New With {.id = "entitas"'+param+'})';
return formCariEntitas;
}
But the error said, "param is not declared. It may be inaccessible". Is there any other way? Is it possible? Thanks
Anonymous User
03-Dec-2014You can do something like this
var formCariEntitas ='@Url.Action("FormCariEntitas", "Registrasi")?parameter=' + param;